package com.li.youhappygo.service;

import com.github.pagehelper.PageInfo;
import com.li.youhappygo.model.dto.CategoryQueryParamDto;
import com.li.youhappygo.model.entity.commond.Category;
import com.li.youhappygo.model.vo.category.CategoryVo;

import java.util.List;

public interface CategoryService {


    PageInfo<CategoryVo> getCategoryList(Integer pageNum, Integer pageSize);

    void insertCategory(Category category);

    void deleteCategory(Long id);

    void updateCategory(Category category);

    List<Category> getChildCategory(Long categoryId);

    PageInfo<CategoryVo> getCategoryListByQueryParam(CategoryQueryParamDto categoryQueryParamDto,Integer pageSize,Integer pageNum);

}
